package com.dj.repository;

import com.dj.bean.EncounterHistoryBean;
import com.dj.bean.PatientHistoryBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface EncounterHistoryRespository extends JpaRepository<EncounterHistoryBean,String>,JpaSpecificationExecutor<EncounterHistoryBean> {

    EncounterHistoryBean findByValidVersionIdAndVersion(String validVersionId, String version);

    List<EncounterHistoryBean> findByValidVersionId(String validVersionId);
}
